package com.shuai.jit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuai.jit.entity.user.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author bn
 */
@Mapper
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    @Select("select * from permission where lev>=#{lev}")
    List<Permission> selectByLev(Integer lev);

}
